$OpenBSD: patch-desktop_source_app_app_cxx,v 1.7 2015/05/03 11:30:33 robert Exp $
--- desktop/source/app/app.cxx.orig.port	Thu Jan 22 21:05:28 2015
+++ desktop/source/app/app.cxx	Sat Jan 31 16:03:15 2015
@@ -119,6 +119,8 @@
 #include <sys/wait.h>
 #endif
 
+#include <unistd.h>
+
 #ifdef WNT
 #ifdef _MSC_VER
 #pragma warning(push, 1) /* disable warnings within system headers */
@@ -651,7 +653,7 @@ void Desktop::DeInit()
         // clear lockfile
         m_xLockfile.reset();
 
-        OfficeIPCThread::DisableOfficeIPCThread();
+        OfficeIPCThread::DisableOfficeIPCThread(false);
         if( pSignalHandler )
             osl_removeSignalHandler( pSignalHandler );
     } catch (const RuntimeException&) {
